package com.shopAuth.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.shopAuth.bean.Admin;
import com.shopAuth.feign.Facotry.AdminFactory;
import com.shopAuth.feign.Facotry.AppSessionFactory;

import shopBean.common.bean.RestResult;

@FeignClient(value="service-shopAuth",fallbackFactory=AdminFactory.class)
public interface AdminFeign {

	@RequestMapping("/admin/reg.api")
	public RestResult reg( @RequestBody Admin admin);
	
	@RequestMapping("/admin/login.api")
	public RestResult login( @RequestParam(value="password")String password,@RequestParam(value="user")String user) ;
	@RequestMapping("/admin/updatePassword.api")
	public RestResult updatePassword( @RequestParam(value="password")String password,@RequestParam(value="user")String user);
}
